package com.springboot.stelleroid.logger;


import java.io.File;

/**
 * @author leiliang
 *
 *
 * Logger provider
 */
public interface LoggerAdapter {

    /**
     * Get a logger
     *
     * @param key the returned logger will be named after clazz
     * @return logger
     */
    Logger getLogger(Class<?> key);

    /**
     * Get a logger
     *
     * @param key the returned logger will be named after key
     * @return logger
     */
    Logger getLogger(String key);

    /**
     * Get the current logging level
     *
     * @return current logging level
     */
    Level getLevel();

    /**
     * Set the current logging level
     *
     * @param level logging level
     */
    void setLevel(Level level) ;

    /**
     * Get the current logging file
     *
     * @return current logging file
     */
    File getFile();

}